<template>

  <div id="home">
    {{count}}
    <mt-button type="default" @click="addClick">默认按钮</mt-button>
  </div>

</template>

<script>
import { mapState, mapMutations } from 'vuex'
export default {
  name: 'home',
  data () {
    return {
      msg: '这是首页耶耶耶'
    }
  },
  methods: mapMutations({
    addClick: 'ADD'
  }),
  computed: {
    ...mapState(['count'])
  }
}
</script>

<style lang="scss">
  @import '../../static/hotcss/px2rem.scss';
  #home {
    height: px2rem(50);
    color: #fff;
    background: red;
    text-align: center;
    line-height: px2rem(50);
  }
</style>


